package com.res.share.model;

import com.baomidou.mybatisplus.annotation.*;
import com.baomidou.mybatisplus.extension.activerecord.Model;

import java.time.LocalDateTime;
import java.util.Date;

import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 *
 * </p>
 *
 * @author astupidcoder
 * @since 2021-09-13
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("res_user")
public class ResUser extends Model {
    private static final long serialVersionUID = 1L;
    @TableId(value = "ID", type = IdType.AUTO)
    private Integer id;
    /**
     * 账户
     */
    @TableField("USER_NAME")
    private String userName;
    @TableField("USER_IMG")
    private String userImg;
    /**
     * 密码
     */
    @TableField("PASSWORD")
    private String password;
    /**
     * 邮箱
     */
    @TableField("EMAIL")
    private String email;
    /**
     * -1-管理员 0-普通会员 1-白银会员 2-黄金会员 3-钻石会员
     */
    @TableField("USER_TYPE")
    private Integer userType;

    @TableField("USER_MONEY")
    private Integer userMoney;
    /**
     * 会员开始时间
     */
    @TableField("START_TIME")
    private Date startTime;
    /**
     * 会员结束时间
     */
    @TableField("END_TIME")
    private Date endTime;
    /**
     * 登录时间
     */
    @TableField("LOGIN_TIME")
    private Date loginTime;
    /**
     * 创建时间
     */
    @TableField("CREATE_TIME")
    private Date createTime;


    @TableField("UPDATE_TIME")
    private Date updateTime;


    @TableField("CREATE_USER_ID")
    private Integer createUserId;

    @TableField("UPDATE_USER_ID")
    private Integer updateUserId;

    @TableField("MOODS")
    private Integer moods;

    /**
     * 是否删除
     */
    @TableLogic(value = "0", delval = "1")
    @TableField("IS_DEL")
    private Integer isDel;

    @TableField(exist = false)
    private String displayDesc;


}
